package main

import (
	"./game"
	log "github.com/golang/glog"
	"net/http"
)

//web服务
func StartHttpServer(addr string) {
	http.HandleFunc("/summary", Summary)
	http.HandleFunc("/stack", game.NnBets)

	//rpc function
	//http.HandleFunc("/post_group_notification", PostGroupNotification)

	//请在此处添加http路由规则

	handler := loggingHandler{http.DefaultServeMux}

	err := http.ListenAndServe(addr, handler)
	if err != nil {
		log.Fatal("http server err:", err)
	}
}
